<!DOCTYPE html>
<html lang="cmn-hans">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>网易新闻列表练习</title>
    <link rel="stylesheet" href="./css/reset.css" />
    <style>
      a {
        color: #404040;
      }

      .news-wrapper {
        border-top: 1px solid #ddd;
        background-color: #fff;
        margin: 50px auto;
        width: 300px;
      }

      .news-wrapper .news-title {
        border-top: 1px solid #f34540;
        font-size: 16px;
        font-weight: bold;
        margin-top: -1px;
        position: relative;
        float: left;
        padding: 6px 0px 10px 0px;
      }

      .news-wrapper .news-image {
        width: 100%;
        height: 150px;
        overflow: hidden;
        position: relative;
      }

      .news-wrapper .news-image img {
        transition: all 0.5s;
      }

      .news-wrapper .news-image:hover img {
        transform: scale(1.1);
      }

      .news-wrapper .news-image .bg {
        background-image: linear-gradient(transparent, black);
        background-size: auto 100%;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
      }

      .news-wrapper .news-image .bg h3 {
        color: #fff;
        font-size: 16px;
        height: 40px;
        line-height: 40px;
        left: 0;
        bottom: 0;
        width: 100%;
        text-indent: 39px;
        background: url(http://static.ws.126.net/f2e/news/index2016/images/sprite_icon0813_v1.png) no-repeat 12px -125px;
      }

      .news-wrapper .news-list {
        margin-top: 12px;
      }

      .news-wrapper .news-list li {
        position: relative;
        font-size: 14px;
        height: 30px;
        line-height: 30px;
        padding-left: 15px;
        font-family: 宋体;
      }

      .news-wrapper .news-list li a {
        color: #666;
      }

      .news-wrapper .news-list li a:hover {
        color: #f34540;
      }
      .news-wrapper .news-list li a::before {
        content: "";
        background: #dddddd;
        width: 4px;
        height: 4px;
        display: block;
        position: absolute;
        left: 3px;
        top: 50%;
        margin-top: -2px;
      }
    </style>
  </head>
  <body>
    <main class="news-wrapper">
      <h2 class="news-title">
        <a href="#">军事</a>
        <i>·</i>
        <a href="#">航空</a>
      </h2>
      <section class="news-image">
        <a href="#">
          <img src="./images/wangyi/plane.jpg" alt="军事飞机" />
          <div class="bg">
            <h3>中方首批参演部队乘运-20赴俄罗斯</h3>
          </div>
        </a>
      </section>
      <ul class="news-list">
        <li><a href="#">乌总司令首次承认乌军攻击俄边境</a></li>
        <li><a href="#">韩国总统尹锡悦突访乌克兰</a></li>
        <li><a href="#">第二架国产C919“入列”</a></li>
        <li><a href="#">航空业上半年打出翻身仗</a></li>
      </ul>
    </main>
  </body>
</html>
